Custom Google Analytics Dashboards with R: Building The Dashboard {https://t.co/ynkTdcudXT} #rstats #DataScience
— R-bloggers (@Rbloggers) February 25, 2022
How to Share R Shiny Apps – Top 3 Methods Explained {https://t.co/syc2zC0dOM} #rstats #DataScience
— R-bloggers (@Rbloggers) February 22, 2022
Online Course R Statistics: Statistics with R {https://t.co/ittWsF4xDl} #rstats #DataScience
— R-bloggers (@Rbloggers) February 23, 2022
RStudio: A Single Home for R and Python Data Science {https://t.co/rMRMe4HcG3} #rstats #DataScience
— R-bloggers (@Rbloggers) February 24, 2022
Introducing Shiny App Stories {https://t.co/JUAnpV5aez} #rstats #DataScience
— R-bloggers (@Rbloggers) February 21, 2022
My 4 most important explainable AI visualizations (modelStudio) {https://t.co/BickmP7Aoa} #rstats #DataScience
— R-bloggers (@Rbloggers) February 22, 2022
SangerTools – a R package for working with population health datasets has arrived {https://t.co/HgtMYn5mNW} #rstats #DataScience
— R-bloggers (@Rbloggers) February 21, 2022
Custom Google Analytics Dashboards with R: Downloading Data {https://t.co/V3gAmd5KKr} #rstats #DataScience
— R-bloggers (@Rbloggers) February 27, 2022
(Re-)introducing Distill for R Markdown {https://t.co/S7fCG6F4ph} #rstats #DataScience
— R-bloggers (@Rbloggers) February 27, 2022
How I selected my starting word for Wordle using simulations and R {https://t.co/M9499UDkKF} #rstats #DataScience
— R-bloggers (@Rbloggers) February 24, 2022
Employee Turnover Prediction {https://t.co/rpX6j2azHJ} #rstats #DataScience
— R-bloggers (@Rbloggers) February 21, 2022
Experimenting with multi-level and hierarchical splines in PyMC {https://t.co/64JMu6Krst} #rstats #DataScience
— R-bloggers (@Rbloggers) February 27, 2022
Best Way to Download & Install RStudio Desktop Mac/Windows in 2022 {https://t.co/6Otz7vl0Cp} #rstats #DataScience
— R-bloggers (@Rbloggers) February 22, 2022
WoRdle: Solve Wordle with R! {https://t.co/TFCoM2iqK4} #rstats #DataScience
— R-bloggers (@Rbloggers) February 22, 2022
How to use R Markdown (part one) {https://t.co/ILbCLOZLiS} #rstats #DataScience
— R-bloggers (@Rbloggers) February 13, 2022
Working With Databases and SQL in RStudio {https://t.co/uSYTMGhPBn} #rstats #DataScience
— R-bloggers (@Rbloggers) February 18, 2022
How To Make A PowerPoint Presentation Using R Markdown {https://t.co/KwWQ3Uq1uF} #rstats #DataScience
— R-bloggers (@Rbloggers) February 13, 2022
4 Ways to use colors in ggplot more efficiently {https://t.co/06nLp8KABo} #rstats #DataScience
— R-bloggers (@Rbloggers) February 19, 2022
Create Customized Shiny Dashboards: Without Knowing CSS! {https://t.co/zICJnt6Pkl} #rstats #DataScience
— R-bloggers (@Rbloggers) January 31, 2022
Beginner’s guide to machine learning in R (with step-by-step tutorial) {https://t.co/b3dTZTrrcG} #rstats #DataScience
— R-bloggers (@Rbloggers) February 10, 2022
Beginner’s guide to machine learning in R (with step-by-step tutorial) {https://t.co/btVK6vYGin} #rstats #DataScience
— R-bloggers (@Rbloggers) February 12, 2022
Random forest machine learning Introduction {https://t.co/9M1wNXjfse} #rstats #DataScience
— R-bloggers (@Rbloggers) February 3, 2022
11 New Books added to Big Book of R {https://t.co/zlBZjahGXb} #rstats #DataScience
— R-bloggers (@Rbloggers) February 6, 2022
Introduction to missing data (NAs) in R {https://t.co/IqsonIzhvJ} #rstats #DataScience
— R-bloggers (@Rbloggers) February 2, 2022
Export Data Frames into Multiple Excel Sheets in R {https://t.co/wCDnb2eZpj} #rstats #DataScience
— R-bloggers (@Rbloggers) February 13, 2022
A new R package for Business Analytics… radiant {https://t.co/EBSvGRTpje} #rstats #DataScience
— R-bloggers (@Rbloggers) February 1, 2022
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```